From: Jasper St. Pierre Date: Sun, 17 Feb 2013 19:30:04 +0000 (-0500) Subject: messageTray: Jiggle some code around X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4773 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4a3a61bea14af550d6b96a3ed22b6c4746d29b1e;p=gnome-shell.git messageTray: Jiggle some code around This is to put state management with state management https://bugzilla.gnome.org/show_bug.cgi?id=694038 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 942556499..16064ebde 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1864,11 +1864,6 @@ const MessageTray = new Lang.Class({ return false; }, - openTray: function() { - this._traySummoned = true; - this._updateState(); - }, - _onNotificationKeyRelease: function(actor, event) { if (event.get_key_symbol() == Clutter.KEY_Escape && event.get_state() == 0) { this._closeNotification(); @@ -2035,6 +2030,11 @@ const MessageTray = new Lang.Class({ this._updateState(); }, + openTray: function() { + this._traySummoned = true; + this._updateState(); + }, + toggle: function() { this._traySummoned = !this._traySummoned; this._updateState();